package cn.stylefeng.guns.modular.yingbao.service;

import cn.stylefeng.guns.base.pojo.page.LayuiPageInfo;
import  cn.stylefeng.guns.modular.yingbao.entity.UserPay;
import  cn.stylefeng.guns.modular.yingbao.model.params.UserPayParam;
import  cn.stylefeng.guns.modular.yingbao.model.result.UserPayResult;
import cn.stylefeng.roses.core.reqres.response.ResponseData;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 * 用户收款信息表 服务类
 * </p>
 *
 * @author zs
 * @since 2019-12-12
 */
public interface UserPayService extends IService<UserPay> {

    /**
     * 新增
     *
     * @author zs
     * @Date 2019-12-12
     */
    void add(UserPayParam param);

    /**
     * 删除
     *
     * @author zs
     * @Date 2019-12-12
     */
    void delete(UserPayParam param);

    /**
     * 更新
     *
     * @author zs
     * @Date 2019-12-12
     */
    void update(UserPayParam param);

    /**
     * 查询单条数据，Specification模式
     *
     * @author zs
     * @Date 2019-12-12
     */
    UserPayResult findBySpec(UserPayParam param);

    /**
     * 查询列表，Specification模式
     *
     * @author zs
     * @Date 2019-12-12
     */
    List<UserPayResult> findListBySpec(UserPayParam param);

    /**
     * 查询分页数据，Specification模式
     *
     * @author zs
     * @Date 2019-12-12
     */
     LayuiPageInfo findPageBySpec(UserPayParam param);

    ResponseData queryByName(String userid);

    ResponseData addPay(UserPay userPay);

    ResponseData delPayid(String id);

    ResponseData upUserPay(UserPay userPay);

    ResponseData queryByUserId(String userid);

    ResponseData queryById(Long id);

    ResponseData queryByUserIdAndName(String userid, String name);

    ResponseData upStatus(String id);

    List<UserPay> queryAll1(Long userid);
}
